package com.extsci.webmail.common.entity.http;

/**
 * 自定义请求返回码
 * @author ccoke
 */
public enum ResponseStatus {

    SUCCESS("00000", "请求成功"),
    PARAM_ERROR("00001", "参数非法"),
    NOTFOUNT("00002", "未找到结果"),
    HAVA_SENSITIVE("00003", "出现敏感词"),
    CANNOT_CREATE_NO_GROUP("00004", "组名不能为'未分组联系人'"),
    CANNOT_ADD_USERS_TO_GROUP("00005", "无法向该分组添加用户"),
    CANNOT_MODIFY_GROUP("00006", "无法修改该组"),
    CANNOT_DELETE_NO_GROUP("00007", "无法删除'未分组联系人'分组"),
    CANNOT_PARSE_EMAIL("00008", "邮件解析失败"),
    CANNOT_CREATE_EMAIL("00009", "邮件创建失败"),
    CANNOT_SEND_EMAIL("000010", "发送邮件失败"),
    CANNOT_REMOVE_EMAIL("000011","删除邮件失败"),
    CANNOT_MOVE_EMAIL("000012","移动邮件失败"),
    CANNOT_SET_EMAIL_IS_SEEN("000013","无法设置邮件已读"),
    CANNOT_GET_EMAIL_QUOTA("000014","无法获取邮箱配额"),
    CANNOT_GET_RECENT_SENDERS("000015","获取最近联系人列表失败"),
    CANNOT_SEND_EMAIL_CASE_BY_SENSITIVE("000016", "出现敏感词，发送邮件失败"),
    PARSE_ATTACHMENT_ERROR("000017", "解析附件失败"),
    CANNOT_SAVE_EMAIL("000018","保存邮件失败"),
    SOME_ERROR("01000", "未知错误！");


    private String code;

    private String message;

    ResponseStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
